#ifndef Eeprom_H
#define Eeprom_H

#include "main.h"

#define eeprom_Check                0x00
#define eeprom_CheckLen             2

#define eeprom_Times                (eeprom_Check+eeprom_CheckLen)
#define eeprom_TimesLen             2

#define eeprom_GoldCoin             0x10
#define eeprom_GoldCoinLen          2

#define eeprom_Name                 (eeprom_GoldCoin+eeprom_GoldCoinLen)
#define eeprom_NameLen              10

#define eeprom_SoundRffectM         (eeprom_Name+eeprom_NameLen)
#define eeprom_SoundRffectMLen      4

#define eeprom_BackgroundMusicM     (eeprom_SoundRffectM+eeprom_SoundRffectMLen)
#define eeprom_BackgroundMusicMLen  4

#define eeprom_VolumeM              (eeprom_BackgroundMusicM+eeprom_BackgroundMusicMLen)
#define eeprom_VolumeMLen           4
 
#define eeprom_rankingList0     0xd0
#define eeprom_rankingList0Len  16

#define eeprom_rankingList1     (eeprom_rankingList0+eeprom_rankingList0Len)
#define eeprom_rankingList1Len  16

#define eeprom_rankingList2     (eeprom_rankingList1+eeprom_rankingList1Len)
#define eeprom_rankingList2Len  16 

bool Eeprom_Write(u16 address, u8 date);
bool Eeprom_Read(u16 address, u8 *readData);
bool Eeprom_Writes(u16 address, u8 *dates, u16 len);
bool Eeprom_Reads(u16 address, u8 *readData, u16 len);
#endif /* Eeprom_H */
